Fix cpu selection at the time vCPU allocation
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Mar 2009 18:54:09 +0000 (18:54 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 6 Mar 2009 18:54:09 +0000 (18:54 +0000)
commit2ff253bcb673ece307074c6b20290ef0d37f2e8f
treeaa965575a519a7c48f2c8d5c51dc407190a9a581
parentb3a3ac0f6b46feb2ff6abf4deba9a7395aed2575
Fix cpu selection at the time vCPU allocation

After cpu_[online/offline], set bits in cpu_online_map could be not
continuous. Use cycle_cpu() to pick the next one.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
xen/common/domctl.c
xen/common/sched_credit.c
xen/include/xen/cpumask.h